#include<stdio.h>
#include<unistd.h>
#include<stdlib.h>

int main()
{
  pid_t id = fork();
  while(id == 0)
  {
    //child
    printf("I am child process , pid: %d,ppid: %d \n",getpid(),getppid());
    sleep(1);
  
  }
  
    
    //parent
    while(1)
    {
      printf("I am parent process , pid: %d,ppid: %d \n",getpid(),getppid());
      sleep(1);
    }
  

  return 0;
}
